-
-
Notifications
You must be signed in to change notification settings - Fork 10.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
link: stop unneeded force linking on Mojave/CLT 10. #4441
link: stop unneeded force linking on Mojave/CLT 10. #4441
Conversation
People are getting in the habit of force-linking things like `zlib` to fix linking/include issues on Mojave (which doesn't install headers to `/usr/include` by default). This way lies madness so encourage people to instead pass the correct compiler flags instead.
elsif (MacOS.version >= :mojave || | ||
MacOS::Xcode.version >= "10.0" || | ||
MacOS::CLT.version >= "10.0") && | ||
dep_f.keg_only_reason.reason == :provided_by_macos |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we also want to check shadowed_by_macos
too since finding the libedit
headers may be an issue too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 but let's wait until we see that in the wild first?
Merging as-is for now but plan on adding |
Apparently I can now link
|
That's a bug. |
Running |
yeah the |
So following this change, how are we meant to use things like curl after installing? Previously the only (simple) way to switch the built-in |
|
Thanks. I believe a lot of people were using |
It'd be relatively easy to throw out to I'll let one of them comment as they wish to before I stick my head into this one too much. |
More likely the approach will be applied to <= 10.13 as well, possibly with a deprecation warning first. |
People are getting in the habit of force-linking things like
zlib
to fix linking/include issues on Mojave (which doesn't install headers to/usr/include
by default). This way lies madness so encourage people to instead pass the correct compiler flags instead.References Homebrew/homebrew-core#28423 (comment)
brew style
with your changes locally?brew tests
with your changes locally?